From 4634856241f9fd2745edfabd7d65a5aa1cccf462 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 23 Nov 2005 18:44:32 +0000 Subject: [PATCH] * (bug 2894) Enhanced Recent Changes link fixes Patch from P. K. CHAN: http://bugzilla.wikimedia.org/attachment.cgi?id=1091 plus additional fix: http://bugzilla.wikimedia.org/attachment.cgi?id=1092 --- RELEASE-NOTES | 1 + includes/ChangesList.php | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 38f0ff1fe7..cc5880a1e5 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -243,6 +243,7 @@ fully support the editing toolbar, but was found to be too confusing. * (bug 3996) Fix text for new entries in RC RSS/Atom feed * (bug 3886) Update for Portuguese language (pt) * (bug 4020) Update namespaces for ms +* (bug 2894) Enhanced Recent Changes link fixes === Caveats === diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 50ef66ad1d..6d90e570fd 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -427,16 +427,17 @@ class EnhancedChangesList extends ChangesList { } else { $rcIdQuery = ''; } - $query = $curIdEq."&diff=$rc_this_oldid&oldid=$rc_last_oldid"; + $querycur = $curIdEq."&diff=0&oldid=$rc_this_oldid"; + $querydiff = $curIdEq."&diff=$rc_this_oldid&oldid=$rc_last_oldid"; $aprops = ' tabindex="'.$baseRC->counter.'"'; - $curLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['cur'], $query, '' ,'' , $aprops ); + $curLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['cur'], $querycur, '' ,'' , $aprops ); if( $rc_type == RC_NEW || $rc_type == RC_LOG || $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { if( $rc_type != RC_NEW ) { $curLink = $this->message['cur']; } $diffLink = $this->message['diff']; } else { - $diffLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['diff'], $query . $rcIdQuery, '' ,'' , $aprops ); + $diffLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['diff'], $querydiff, '' ,'' , $aprops ); } # Make "last" link @@ -594,8 +595,8 @@ class EnhancedChangesList extends ChangesList { $r .= ' ' ; $o = '' ; - if ( $rc_last_oldid != 0 ) { - $o = 'oldid='.$rc_last_oldid ; + if ( $rc_this_oldid != 0 ) { + $o = 'oldid='.$rc_this_oldid ; } if ( $rc_type == RC_LOG ) { $link = $rcObj->timestamp; -- 2.20.1